package cn.jinzhu.openfeign;

import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@EnableFeignClients //开启openfeign远程调用的注解
@SpringBootApplication
public class OpenfeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(OpenfeignApplication.class, args);
    }
    @Bean//注入openfeign日志，以后项目就这么玩
    Logger.Level logger(){
        return  Logger.Level.FULL;
    }
}
